//
//  DTFrameworkInterface+UpdateDemo.m
//  UpdateDemo
//
//  Created by 1234yws on 2019/03/18. All rights reserved.
//

#import "DTFrameworkInterface+UpdateDemo.h"

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"

@implementation DTFrameworkInterface (UpdateDemo)

- (BOOL)shouldLogReportActive
{
    return YES;
}

- (NSTimeInterval)logReportActiveMinInterval
{
    return 0;
}

- (BOOL)shouldLogStartupConsumption
{
    return YES;
}

- (BOOL)shouldAutoactivateBandageKit
{
    return YES;
}

- (BOOL)shouldAutoactivateShareKit
{
    return YES;
}

- (DTNavigationBarBackTextStyle)navigationBarBackTextStyle
{
    return DTNavigationBarBackTextStyleAlipay;
}
- (DTFrameworkCallbackResult)application:(UIApplication *)application handleDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    return DTFrameworkCallbackResultContinue;
}

- (void)application:(UIApplication *)application afterDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [H5Container configNebulaSDK];
    
    NSDictionary *installedApps = [NAMServiceGet() installApps:nil];
    NSMutableDictionary *requestAllApp = [NSMutableDictionary dictionaryWithDictionary:installedApps];
    [requestAllApp setValue:@"0" forKey:@"nebula-*-all"];
    [[NBServiceGet() appCenter] requestApps:requestAllApp param:@{@"force":@YES} finish:^(NSDictionary *data, NSError *error) {
        
    }];
    
}
@end

#pragma clang diagnostic pop

